var db = require("../../javascript/mysql");
var mysql = new db.mysqlClient("accident");
//生成产品数据
function genProductInfo() {
    plan = {
        planA: {
            "name": "上班族人身意外伤害保险产品计划",
            "company": "中国人民保险",
            "days": "1y",
            "people_count": "1",
            "accident_death": "50000",
            "accident_medical": "10000",
            "bus_death": "80000",
            "price": "34.00"
        },
        planB: {
            "name": "上班族人身意外伤害保险产品计划",
            "company": "中国人民保险",
            "days": "1y",
            "people_count": "1",
            "accident_death": "50000",
            "accident_medical": "",
            "bus_death": "80000",
            "price": "90.00"
        }
    }
    for( k in plan ){
        data = plan[k];
        mysql.insertData( data );
    }
    mysql.close()

}
